package com.ruoyi.baoming.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.baoming.mapper.TbZsbExamRegistrationMapper;
import com.ruoyi.baoming.domain.TbZsbExamRegistration;
import com.ruoyi.baoming.service.ITbZsbExamRegistrationService;

/**
 * 专升本考试报名Service业务层处理
 * 
 * @author xiaosong
 * @date 2025-03-10
 */
@Service
public class TbZsbExamRegistrationServiceImpl implements ITbZsbExamRegistrationService 
{
    @Autowired
    private TbZsbExamRegistrationMapper tbZsbExamRegistrationMapper;

    /**
     * 查询专升本考试报名
     * 
     * @param id 专升本考试报名主键
     * @return 专升本考试报名
     */
    @Override
    public TbZsbExamRegistration selectTbZsbExamRegistrationById(Long id)
    {
        return tbZsbExamRegistrationMapper.selectTbZsbExamRegistrationById(id);
    }

    @Override
    public TbZsbExamRegistration selectTbZsbExamRegistrationByIdNumber(String idNumber)
    {
        return tbZsbExamRegistrationMapper.selectTbZsbExamRegistrationByIdNumber(idNumber);
    }

    /**
     * 查询专升本考试报名列表
     * 
     * @param tbZsbExamRegistration 专升本考试报名
     * @return 专升本考试报名
     */
    @Override
    public List<TbZsbExamRegistration> selectTbZsbExamRegistrationList(TbZsbExamRegistration tbZsbExamRegistration)
    {
        return tbZsbExamRegistrationMapper.selectTbZsbExamRegistrationList(tbZsbExamRegistration);
    }

    /**
     * 新增专升本考试报名
     * 
     * @param tbZsbExamRegistration 专升本考试报名
     * @return 结果
     */
    @Override
    public int insertTbZsbExamRegistration(TbZsbExamRegistration tbZsbExamRegistration)
    {
        return tbZsbExamRegistrationMapper.insertTbZsbExamRegistration(tbZsbExamRegistration);
    }

    /**
     * 修改专升本考试报名
     * 
     * @param tbZsbExamRegistration 专升本考试报名
     * @return 结果
     */
    @Override
    public int updateTbZsbExamRegistration(TbZsbExamRegistration tbZsbExamRegistration)
    {
        return tbZsbExamRegistrationMapper.updateTbZsbExamRegistration(tbZsbExamRegistration);
    }

    /**
     * 批量删除专升本考试报名
     * 
     * @param ids 需要删除的专升本考试报名主键
     * @return 结果
     */
    @Override
    public int deleteTbZsbExamRegistrationByIds(Long[] ids)
    {
        return tbZsbExamRegistrationMapper.deleteTbZsbExamRegistrationByIds(ids);
    }

    /**
     * 删除专升本考试报名信息
     * 
     * @param id 专升本考试报名主键
     * @return 结果
     */
    @Override
    public int deleteTbZsbExamRegistrationById(Long id)
    {
        return tbZsbExamRegistrationMapper.deleteTbZsbExamRegistrationById(id);
    }
}
